const { Service } = require("uni-cloud-router")
const dbCmd = db.command
module.exports = class FormService extends Service {
  sayHello() {
    return {
      data: "welcome to uni-cloud-router!",
    };
  },
	submit(data, uid){
		var formsubmitdb = this.db.collection('form-submit')
		var res = formsubmitdb.add({
			form_id: param.form_id,
			info: param.items,
			user_id: uid,
			ispublic: 0,
			create_date: new Date().getTime()
		})
		return {
			code: 0,
			msg: '添加成功',
			data:res
		}
	}
	
};